<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 注册设置表
 *
 * Date: 20/03/2018
 * @author George
 */
class CreateRegistriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('registries', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('company_id')->index()->comment('公司ID');
            $table->boolean('stature')->default(1)->comment('身高');
            $table->boolean('education')->default(1)->comment('学历');
            $table->boolean('marital')->default(1)->comment('婚姻');
            $table->boolean('address')->default(1)->comment('现居地');
            $table->boolean('urgency')->default(1)->comment('紧急联系人');
            $table->boolean('trade')->default(1)->comment('行业');
            $table->boolean('skill')->default(1)->comment('技能');
            $table->boolean('channel')->default(1)->comment('应聘渠道');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('registries');
    }
}
